/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aaron.platform.entity;

import java.io.Serializable;
import javax.persistence.*;
import org.hibernate.annotations.Cascade;

/**
 *
 * @author aaronbamboo
 */
@Entity
@Table(name = "zdw_lxkr_mater")
@SequenceGenerator(name="ZDW_LXKR_MATERIALS_GENERATOR", sequenceName="ZDW_LXKR_MATERIALS_GENERATOR", allocationSize = 1)
public class ZdwLxkrProjectMaterial  extends BaseObject implements Serializable  {
    
    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator="ZDW_LXKR_MATERIALS_GENERATOR")
    @Column(name = "mater_id")
    private Integer proMaterId;
    
    /** 材料大类 */
    @Column(name = "mater_type")
    private String materType;
    
    /** 材料小类 */
    @Column(name = "mater_detail")
    private String mmaterDetail;
    
    /** 单位 */
    @Column(name = "mater_unit")
    private String materUnit;
    
    /** 数量 */
    @Column(name = "mater_quantity")
    private double materQuantity;
    
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "pro_id", referencedColumnName = "pro_id")
    private ZdwLxkrProjectInfo lxkrProjectInfo;

    public ZdwLxkrProjectInfo getLxkrProjectInfo() {
        return lxkrProjectInfo;
    }

    public void setLxkrProjectInfo(ZdwLxkrProjectInfo lxkrProjectInfo) {
        this.lxkrProjectInfo = lxkrProjectInfo;
    }    

    public double getMaterQuantity() {
        return materQuantity;
    }

    public void setMaterQuantity(double materQuantity) {
        this.materQuantity = materQuantity;
    }

    public String getMaterType() {
        return materType;
    }

    public void setMaterType(String materType) {
        this.materType = materType;
    }

    public String getMaterUnit() {
        return materUnit;
    }

    public void setMaterUnit(String materUnit) {
        this.materUnit = materUnit;
    }

    public String getMmaterDetail() {
        return mmaterDetail;
    }

    public void setMmaterDetail(String mmaterDetail) {
        this.mmaterDetail = mmaterDetail;
    }

    public Integer getProMaterId() {
        return proMaterId;
    }

    public void setProMaterId(Integer proMaterId) {
        this.proMaterId = proMaterId;
    }
}
